package com.example.lishucheng;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.example.lishucheng.activites.SignInActivity;
import com.google.android.material.button.MaterialButton;

public class login extends AppCompatActivity {
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.login);

            // 绑定按钮
            MaterialButton btnLogin = findViewById(R.id.login);

            // 设置点击跳转
            btnLogin.setOnClickListener(v -> {
                // 创建 Intent 跳转到 LoginInActivity
                Intent intent = new Intent(login.this, SignInActivity.class);
                startActivity(intent);

                // 可选：关闭当前页面（适用于闪屏页等场景）
                // finish();
            });
        }
    }
